package org.sipsl.gisystems.gentest.rte.util;

import org.sipsl.gisystems.rte.V2.TestsuiteV2.DataBatchGroup.Zone.DataBatch.DataBundle;


public class BucketLogicData {
	
	private long bucketSize;
	private long bucketLeft;
	private String unit; //0 bytes 1 kbytes 2 megabytes
	private boolean apply;
	private int position;
	private DataBundle dataBundle;
	private ExItem<String> counterId;

	
	public BucketLogicData(long bucketSize, long bucketLeft, String unit, boolean apply,
			int position, DataBundle dataBundle, ExItem<String> counterId) {
		super();
		this.bucketSize = GenericUtil.roundUp(bucketSize, unit);
		this.bucketLeft = GenericUtil.roundUp(bucketLeft, unit);
		this.apply = apply;
		this.unit = unit;
		this.position = position;
		this.dataBundle = dataBundle;
		this.setCounterId(counterId);
	}
	public long getBucketSize() {
		return bucketSize;
	}
	public void setBucketSize(long bucketSize) {
		this.bucketSize = bucketSize;
	}
	public long getBucketLeft() {
		return bucketLeft;
	}
	
	public DataBundle getDataBundle() {
		return dataBundle;
	}
	public void setDataBundle(DataBundle dataBundle) {
		this.dataBundle = dataBundle;
	}
	public void setBucketLeft(long bucketUsed) {
		this.bucketLeft = bucketUsed;
	}
	public boolean isApply() {
		return apply;
	}
	public void setApply(boolean apply) {
		this.apply = apply;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public ExItem<String> getCounterId() {
		return counterId;
	}
	public void setCounterId(ExItem<String> counterId) {
		this.counterId = counterId;
	}	
}
